Dynomotion

Group: DynoMotion Message: 9216 From: Toby Rule Date: 2/18/2014
Subject: KM_MainStatus.GetKAnalogBitsStateOutputs returns wong value?

Hi Tom,

 

I have a bit that can be set high by the program running on the DSP, but is usually low.  Every time It is set high, I print a message to the console, so I know that I am not setting it high.  It is bit 147, which is bit 3 on the KAnalog digital outputs.

 

I am checking the value of this bit from the PC, using the KM_MainStatus.GetKAnalogBitsStateOutputs function.  Once in a while, for this bit, the function seems to return True when the KFlop has not set the bit to true.  The next time I check it, it has returned to False, which is what I expect it to be.

 

Are there any conditions where KM_MainStatus.GetKAnalogBitsStateOutputs will return the wrong bit value?  I’m updating the status object prior to checking this value, using kmController.CurrentStatus. 

 

Will a communication error cause this to happen?

 

Thanks,

 

Toby

The information contained in this transmission is intended only for the person or entity
to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive
material. If you are not the intended recipient, please contact the sender immediately
and destroy the material in its entirety, whether electronic or hard copy. You are
notified that any review, retransmission, copying, disclosure, dissemination or other
use of, or taking of any action in reliance upon this information by persons or entities 
other than the intended recipient is prohibited.
Group: DynoMotion Message: 9224 From: Tom Kerekes Date: 2/18/2014
Subject: Re: KM_MainStatus.GetKAnalogBitsStateOutputs returns wong value?
Hi Toby,

The bit should not return high unless it is set high.  The Global Status is normally returned on a "best effort" basis for status updates.  If something has the KMotion Token locked for more than a specified timeout the status request is not made.  There should be some indication this occurred.  The SimpleForms.cs example has a method of reading global status that works well.  If it is critical to get the current state of that bit it may be better to read it directly.

HTH
Regards
TK   

Group: DynoMotion Message: 9225 From: Tom Kerekes Date: 2/18/2014
Subject: Re: KM_MainStatus.GetKAnalogBitsStateOutputs returns wong value?
Hi Toby,

The bit should not return high unless it is set high.  The Global Status is normally returned on a "best effort" basis for status updates.  If something has the KMotion Token locked for more than a specified timeout the status request is not made.  There should be some indication this occurred.  The SimpleForms.cs example has a method of reading global status that works well.  If it is critical to get the current state of that bit it may be better to read it directly.

HTH
Regards
TK